import javax.swing.*;

public class ComputeChange {
    public static void main(String[] args) {
        String skaits = JOptionPane.showInputDialog(null, "Skaits :", "Amount", JOptionPane.QUESTION_MESSAGE);
        double amount = Double.parseDouble(skaits);
        
        int remainingAmount = (int)(amount * 100);
        
        int numberOfOneDollars = remainingAmount / 100;
        remainingAmount = remainingAmount % 100;
        
        int numberOfQuarters = remainingAmount / 25;
        remainingAmount = remainingAmount % 25;
        
        int numberOfDimes = remainingAmount / 10;
        remainingAmount = remainingAmount % 10;
        
        int numberOfNickels = remainingAmount / 5;
        remainingAmount = remainingAmount % 5;
        
        int numberOfPennies = remainingAmount;
        
        JOptionPane.showMessageDialog(null, "Tev ir " + amount + " , kas satur \n"
                + "\t" + numberOfOneDollars + " dolārus\n"
                + "\t" + numberOfQuarters + " kvarterus\n"
                + "\t" + numberOfDimes + " daimus\n"
                + "\t" + numberOfPennies + " penijus\n");
    }
}